/************************************************************************************
* YContextImpl.h                                                                    *
*                                                                                   *
* Copyright (C) 2011 Varuna L Amachi                                                *
*                                                                                   *
* This program is free software; you can redistribute it and/or modify              *
* it under the terms of the GNU General Public License as published by              *
* the Free Software Foundation; either version 2 of the License, or any             *
* later version.                                                                    *
*                                                                                   *
* This program is distributed in the hope that it will be useful, but               *
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY        *
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for       *
* more details. You should have received a copy of the GNU General Public           *
* License along with this program; if not, write to the Free Software Foundation,   *
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA                       *
*                                                                                   *
*************************************************************************************/

#ifndef YCONTEXTIMPL_H
#define YCONTEXTIMPL_H

#include "interfaces/YContext.h"
#include "interfaces/Player.h"
#include "interfaces/Playlist.h"
#include "database/YDb.h"
#include "collector/Collector.h"

class YContextImpl : public Yamp::YContext
{
    Yamp::Player* m_player;
    Yamp::Playlist* m_playlist;
    Yamp::IComponentManager* m_componentManager;

public:
    YContextImpl(Yamp::Player* player,
                 Yamp::Playlist* playlist,
                 Yamp::IComponentManager* compManager);
    Yamp::Player *player();
    Yamp::Playlist *playlist();
    Yamp::IComponentManager *componentManager();
    Collector *collector();
    YDb *ydb();
};

#endif // YCONTEXTIMPL_H
